Spoof detection for biometric authentication

ABSTRACT

This specification describes technologies relating to biometric authentication based on images of the eye. In general, one aspect of the subject matter described in this specification can be embodied in methods that include obtaining images of a subject including a view of an eye. The methods may further include determining a behavioral metric based on detected movement of the eye as the eye appears in a plurality of the images, determining a spatial metric based on a distance from a sensor to a landmark that appears in a plurality of the images each having a different respective focus distance, and determining a reflectance metric based on detected changes in surface glare or specular reflection patterns on a surface of the eye. The methods may further include determining a score based on the behavioral, spatial, and reflectance metrics and rejecting or accepting the one or more images based on the score.

CROSS REFERENCE TO RELATED APPLICATION

This application is a continuation of, and claims priority to, pendingU.S. patent application Ser. No. 14/059,034, filed on Oct. 21, 2013,entitled “Spoof Detection for Biometric Authentication”, which is acontinuation of, and claims priority to, pending U.S. patent applicationSer. No. 13/888,059, filed on May 6, 2013, entitled “Spoof Detection forBiometric Authentication”, which is a continuation of, and claimspriority to, patented U.S. patent application Ser. No. 13/572,097, filedon Aug. 10, 2012, entitled “Spoof Detection for BiometricAuthentication”. The disclosures of the foregoing applications areincorporated herein by reference in their entirety.

TECHNICAL FIELD

The present disclosure relates to biometric authentication based onimages of the eye.

BACKGROUND

It is often desirable to restrict access to property or resources toparticular individuals. Biometric systems may be used to authenticatethe identity of an individual to either grant or deny access to aresource. For example, iris scanners may be used by a biometric securitysystem to identify an individual based on unique structures in theindividual's iris.

SUMMARY

This specification describes technologies relating to biometricauthentication based on images of the eye. In general, one aspect of thesubject matter described in this specification can be embodied in amethod that includes obtaining two or more images of a subject includinga view of an eye, wherein the images collectively include a plurality offocus distances. The method may further include determining a behavioralmetric based on, at least, detected movement of the eye as the eyeappears in a plurality of the images. The behavioral metric may be ameasure of deviation of detected movement and timing from expectedmovement of the eye. The method may further include determining aspatial metric based on, at least, a distance from a sensor to alandmark that appears in a plurality of the images each having adifferent respective focus distance. The method may further includedetermining a reflectance metric based on, at least, detected changes insurface glare or specular reflection patterns on a surface of the eye asthe eye appears in a plurality of the images, wherein the reflectancemetric is a measure of changes in glare or specular reflection patcheson the surface of the eye. The method may further include determining ascore based on, at least, the behavioral, spatial, and reflectancemetrics. The method may further include rejecting or accepting the oneor more images based on the score.

In general, one aspect of the subject matter described in thisspecification can be embodied in a system that includes a sensorconfigured to capture two or more images of a subject including a viewof an eye, wherein the images collectively include a plurality of focusdistances. The system may further include an illumination elementprovide photic stimuli in synchronization with the capture of one ormore images by the sensor. The system may further include a means fordetermining a behavioral metric based on, at least, detected movement ofthe eye as the eye appears in a plurality of the images. The behavioralmetric is a measure of deviation of detected movement and timing fromexpected movement of the eye. The system may further include a moduleconfigured to determine a spatial metric based on, at least, a distancefrom a sensor to a landmark that appears in a plurality of the imageseach having a different respective focus distance. The system mayfurther include a module configured to determine a reflectance metricbased on, at least, detected changes in surface glare or specularreflection patterns on a surface of the eye as the eye appears in aplurality of the images, wherein the reflectance metric is a measure ofchanges in glare or specular reflection patches on the surface of theeye. The system may further include a module configured to determine ascore based on, at least, the behavioral, spatial, and reflectancemetrics. The system may further include an interface configured toreject or accept the one or more images based on the score.

In general, one aspect of the subject matter described in thisspecification can be embodied in a system that includes a dataprocessing apparatus and a memory coupled to the data processingapparatus. The memory having instructions stored thereon which, whenexecuted by the data processing apparatus cause the data processingapparatus to perform operations including obtaining two or more imagesof a subject including a view of an eye, wherein the images collectivelyinclude a plurality of focus distances. The operations may furtherinclude determining a behavioral metric based on, at least, detectedmovement of the eye as the eye appears in a plurality of the images. Thebehavioral metric may be a measure of deviation of detected movement andtiming from expected movement of the eye. The operations may furtherinclude determining a spatial metric based on, at least, a distance froma sensor to a landmark that appears in a plurality of the images eachhaving a different respective focus distance. The operations may furtherinclude determining a reflectance metric based on, at least, detectedchanges in surface glare or specular reflection patterns on a surface ofthe eye as the eye appears in a plurality of the images, wherein thereflectance metric is a measure of changes in glare or specularreflection patches on the surface of the eye. The operations may furtherinclude determining a score based on, at least, the behavioral, spatial,and reflectance metrics. The operations may further include rejecting oraccepting the one or more images based on the score.

In general, one aspect of the subject matter described in thisspecification can be embodied in a non-transient computer readable mediastoring software including instructions executable by a processingdevice that upon such execution cause the processing device to performoperations that include obtaining two or more images of a subjectincluding a view of an eye, wherein the images collectively include aplurality of focus distances. The operations may further includedetermining a behavioral metric based on, at least, detected movement ofthe eye as the eye appears in a plurality of the images. The behavioralmetric may be a measure of deviation of detected movement and timingfrom expected movement of the eye. The operations may further includedetermining a spatial metric based on, at least, a distance from asensor to a landmark that appears in a plurality of the images eachhaving a different respective focus distance. The operations may furtherinclude determining a reflectance metric based on, at least, detectedchanges in surface glare or specular reflection patterns on a surface ofthe eye as the eye appears in a plurality of the images, wherein thereflectance metric is a measure of changes in glare or specularreflection patches on the surface of the eye. The operations may furtherinclude determining a score based on, at least, the behavioral, spatial,and reflectance metrics. The operations may further include rejecting oraccepting the one or more images based on the score.

These and other embodiments can each optionally include one or more ofthe following features. Determining the behavioral metric may includedetermining an onset, duration, velocity, or acceleration of pupilconstriction in response to photic stimuli. The photic stimuli mayinclude a flash pulse. The photic stimuli may include a change in theintensity of light output by a display. The determining the behavioralmetric may include determining an onset, duration, or acceleration ofgaze transition in response to external stimuli. The external stimulimay include prompts for instructing a user to direct gaze. The externalstimuli may include an object depicted in a display that moves withinthe display. The spatial metric may be a measure of deviation of thesubject from a two-dimensional plane. The spatial metric may be ameasure of deviation of the subject from an expected three-dimensionalshape. Determining the spatial metric may include determining parallaxof two or more landmarks that appear in a plurality of the images.Half-tones may be detected in an image captured using reduced dynamicrange and the images may be rejected based at least in part on thehalf-tones. Determining the behavioral metric may include detectingblood flow of the eye as the eye appears in a plurality of the images.Determining the score may include using a trained function approximatorto determine the score. The landmark may be a portion of a face depictedin the images. Determining the reflectance metric may include pulsing aflash to illuminate the subject while one or more of the images arebeing captured, detecting the appearance of glare on the eye from theflash in the images, and measuring the time difference between thepulsing of the flash and the appearance of a corresponding glare on theeye in the images. Determining the reflectance metric may includepulsing a flash to illuminate the subject while one or more of theimages are being captured and detecting fine three dimensional textureof a white of the eye by measuring uniformity of a pattern of glare onthe eye from the flash in the images. A sensor setting that controlsfocus may be adjusted to a plurality of different settings duringcapture of two or more of the images. The images captured with differentfocus settings may be compared to determine whether these images reflecttheir respective focus settings. A sensor setting that controls exposuremay be adjusted to a plurality of different settings during capture oftwo or more of the images. The images captured with different exposuresettings may be compared to determine whether these images reflect theirrespective exposure settings. A sensor setting that controls whitebalance may be adjusted to a plurality of different settings duringcapture of two or more of the images. The images captured with differentwhite balance settings may be compared to determine whether these imagesreflect their respective white balance settings.

Particular embodiments of the invention can be implemented to realizenone, one or more of the following advantages. Some implementations mayprovide security by reliably authenticating individuals. Someimplementations may prevent spoofing of an eye biometric basedauthentication system using objects that are not a living human eye.

The details of one or more embodiments of the invention are set forth inthe accompanying drawings and the description below. Other features,aspects, and advantages of the invention will become apparent from thedescription, the drawings, and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram of the anatomy of a human eye.

FIG. 2 is a diagram of an example image including portions showingvasculature of the white of an eye.

FIG. 3 is a diagram of an example image that is segmented for analysis.

FIG. 4 is a block diagram of example security system that is configuredto authenticate an individual based in part on one or more images of thewhite of an eye.

FIG. 5 is a block diagram of an example online environment.

FIG. 6 is a flow chart of an example process for authenticating anindividual based on one or more images of the white of an eye, where theliveness of the eye in the obtained images for authentication ischecked.

FIG. 7 is a flow chart of an example process for determining a livenessscore for one or more images of an eye.

FIG. 8A is a flow chart of an example process for determining abehavioral metric based on constriction of a pupil in response to photicstimulus.

FIG. 8B is a flow chart of an example process for determining abehavioral metric based on gaze transition of an iris in response toexternal stimulus.

FIG. 9 shows an example of a computer device and a mobile computerdevice that can be used to implement the techniques described here.

DETAILED DESCRIPTION

Distinctive features of an individual's visible vasculature in thewhites of the eyes may be used to identify or authenticate theindividual. For example, images of the white of a user's eye can beobtained and analyzed to compare features of the eye to reference recordin order to authenticate the user and grant or deny the user access to aresource. Adversaries or intruders could attempt spoof a security systemusing such an authentication method by presenting something other than alive eye (e.g., a picture of an authorized user's face or a plasticmodel of an authorized user's eye) to the security system's lightsensor. Some spoof attempts may be frustrated by configuring a securitysystem to analyze the obtained images to discriminate images of liveeyes from images of props.

One or more liveness metrics can be calculated that reflect properties alive eye is expected to exhibit that may not be exhibited by certainspoof attempts. For example, stimuli can be applied to a user during theimage acquisition process and the response of an eye depicted in theimages may be quantified with a metric compared to an expected responseof a live eye to those stimuli. In some implementations, the obtainedimages can be checked at a plurality of focus distances to determine ifthe eye depicted in the images is three dimensional (e.g., does it havelandmarks that appear to be positioned at distances from the sensor thatdeviated from a single plane). In some implementations, a metric relatedto the reflectance of the eye may be determined. A live eye has uniquereflectance properties caused by its three dimensional shape and itsfine surface texture and moisture that may not be exhibited by manyspoof attack props. For example, a flash device may be used toilluminate the subject during a portion of the image acquisition processand the timing and quality of the reflection of the flash pulse on thesubject's eye may analyzed to determine if it is indeed a live eyeballbeing imaged in real time.

In some implementations, a plurality of liveness metrics may be combinedto determine a liveness score or decision that reflects the likelihoodthat the images depict a live eye, as opposed to, for example, an imageof model or a two-dimensional picture of an eye. For example, a trainedfunction approximator (e.g., a neural network) can be used to determine,based on a plurality of liveness metrics, a liveness score. The imagesobtained can then be accepted or rejected based on the liveness score.In some implementations, a spoof attempt may be reported when theliveness score indicates that the images do not depict a live eye.

FIG. 1 is a diagram of the anatomy of a human eye 100. The diagram is across-section of the eye with a blowup 102 of the anatomy near thecorneal limbus boundary of the eye that separates the colored iris 110from the surrounding white of the eye. The white of the eye includes acomplex vascular structure which is not only readily visible andscannable from outside of the eye, but in addition that vascularstructure is unique and varies between individuals. Thus, these vascularstructures of the white of the eye, mostly due to vasculature ofconjunctiva and episclera, can be scanned and advantageously used as abiometric. This biometric can be used to authenticate a particularindividual, or, identify an unknown individual.

The white of the eye has a number of layers. The sclera 120 is anopaque, fibrous, protective, layer of the eye containing collagen andelastic fiber. The sclera 120 is covered by the episclera 130, which hasa particularly large number of blood vessels and veins that that runthrough and over it. The episclera 130 is covered by the bulbarconjunctiva 140, which is a thin clear membrane that interfaces with theeyelid 150 or the environment when the eyelid is opened. Blood vesselsand veins run through all of these layers of the white of the eye andcan be detected in images of the eye. The eye also includes eyelashes160 that may sometimes obscure portions of the white of the eye in animage.

FIG. 2 is a diagram of an example image 200 including portions showingvasculature of the white of an eye. Such an image 200 may be capturedwith a sensor (e.g., a camera) that is integrated into a computingdevice such as, for example, a smart phone, a tablet computer, atelevision, a laptop computer, or a personal computer. For example, auser may be prompted through a display or audio prompt to look to theleft while the image is captured, thus exposing a larger area of thewhite of the eye to the right of the iris to the view of the sensor.Similarly, a user may be prompted to look right, up, down, straight,etc. while an image is captured. The example image includes a view of aniris 220 with a pupil 210 at its center. The iris 220 extends to thecorneal limbus boundary 225 of the eye. The white 230 of the eye isexternal to a corneal limbus boundary 225 of the eye. An extensivevasculature 240 of the white of the eye is visible in the image 100.This vasculature 240 may be distinctive for an individual. In someimplementations, distinctive features of the vasculature 240 may be usedas a basis for identifying, verifying, or authenticating an individualuser.

FIG. 3 is a diagram of an example image 300, including portions showingvasculature of the whites of two eyes, that is segmented for analysis. Acaptured image 310 may be obtained in a variety of ways. The capturedimage 310 may be preprocessed and segmented to isolate regions ofinterest within the image and enhance the view of vasculature in thewhites of the eyes. For example, the regions of interest may be tiledportions that form grids covering some or all the whites of the eyes. Aportion 320 of the corresponding to the white of the right eye left ofthe iris may be isolated, for example, by identifying the corneal limbusboundary and the edges of the eyelids. Similarly, a portion 322corresponding to the white of the left eye left of the iris may beisolated. Preprocessing may be used to enhance the view of thevasculature in this region, for example, by selecting a component colorfrom the image data that maximizes the contrast between the vasculatureand the surrounding white portions of the whites of the eyes. In someimplementations, these portions 320, 322 of the image may be furthersegmented into tiles forming grids 330, 332 that divide an exposedsurface area of the whites of the eyes into smaller regions for analysispurposes. Features of the vasculature in these regions of interest maybe used for identification, verification, or authentication of anindividual.

FIG. 4 is a block diagram of example security system 400 that isconfigured to authenticate an individual based in part on one or moreimages of the white of an eye 410. A user of the security system 400 maypresent their eye 410 to a light sensor 420. In this manner one or moreimages of the white of the eye 410 may be captured. A digital camera, athree-dimensional (3D) camera, and a light field sensor are examples oflight sensors that may be employed. The light sensor 420 may employ avariety of technologies, e.g., digital charge-coupled devices (CCD) orcomplementary metal-oxide-semiconductors (CMOS). In someimplementations, the user may be prompted via messages shown on display424 to make certain poses to expose portions of the white of the eye 410and facilitate image acquisition. For example, the user may be promptedto direct their gaze in order to roll the iris of their eye 410 left,right, up, up-left, and roll up-right. In some implementations, notshown, the user may be prompted to assume poses though messages playedthrough a speaker, through indicator lights (e.g. LEDs), or not promptedat all.

In some implementations, the sensor 420 can be configured to detect whenthe eye 410 has been properly positioned in the field of view of thesensor. Alternatively, software or firmware implemented on a computingdevice 430 can analyze one or more images produced by the light sensor420 to determine whether the eye 410 has been properly positioned. Insome implementations, the user may manually indicate when the eye 410 isproperly positioned through a user interface (e.g., button, keyboard,keypad, touchpad, or touch screen).

An authentication module 440 implemented on the computing device 430 mayobtain one or more images of the white of the eye through the lightsensor 420. In some implementations, the computing device 430 isintegrated with or electrically coupled to the light sensor 420. In someimplementations, the computing device 430 may communicate with the lightsensor 420 through a wireless interface (e.g., an antenna).

The authentication module 440 processes images obtained through thelight sensor 420 to control access to a secured device 450. For example,the authentication module 440 may implement authentication processesdescribed in relation to FIG. 6. In some implementations, the secureddevice 450 may include an actuator 460 (e.g., a locking mechanism) thataffects the access control instructions from the authentication module440.

The computing device may be integrated with or interface with thesecured device 450 in a variety of ways. For example, the secured device450 may be an automobile, the light sensor 420 may be a cameraintegrated in the steering wheel or dashboard of the automobile, and thecomputing device 430 may be integrated in the automobile andelectrically connected to the camera and an ignition locking system thatserves as the security actuator 460. A user may present views of thewhites of their eye to the camera in order to be authenticated as anauthorized driver of the automobile and start the engine.

In some implementations, the secured device 450 may be a real estatelock box, the light sensor 420 may be a camera integrated with theuser's mobile device (e.g., a smartphone or tablet device), and theprocessing of the authentication module 440 may be performed in part bythe user's mobile device and in part by a computing device integratedwith the lock box that controls a power locking mechanism. The twocomputing devices may communicate through a wireless interface. Forexample, the user (e.g., a realtor giving a showing of a property) mayuse the camera on their mobile device to obtain one or more images andsubmit data based on the images to the lock box in order to beauthenticated as authorized user and granted access to keys stored inthe lock box.

In some implementations, the secured device 450 is a gate or door thatcontrols access to a property. The light sensor 420 may be integrated inthe door or gate or positioned on a wall or fence near the door or gate.The computing device 430 may be positioned nearby and may communicatethrough a wireless interface with the light sensor 420 and a powerlocking mechanism in the door or gate that serves as an actuator 460. Insome implementations, the secured device 450 may be a rifle and thelight sensor 420 may be integrated with a scope attached to the rifle.The computing device 430 may be integrated in the butt of the rifle andmay electronically connect to the light sensor 420 and a trigger orhammer locking mechanism that serves as an actuator 460. In someimplementations, the secured device 450 may be a piece of rentalequipment (e.g., a bicycle).

The computing device 430 may include a processing device 432 (e.g., asdescribed in relation to FIG. 9) and a machine-readable repository, ordatabase 434. In some implementations, the machine-readable repositorymay include flash memory. The machine-readable repository 434 may beused to store one or more reference records. A reference record mayinclude data derived from one or more images of the white of an eye fora registered our authorized user of the secured device 450. In someimplementations, the reference record includes complete referenceimages. In some implementations the reference record includes featuresextracted from the reference images. In some implementations thereference record includes encrypted features extracted from thereference images. In some implementations the reference record includesidentification keys encrypted by features extracted from the referenceimages. To create a reference record for a new user and enrollment orregistration process may be carried out. An enrollment process mayinclude the capture of one or more reference images of the white of anew registered user's eye. In some implementations, the enrollmentprocess may be performed using the light sensor 420 and processingdevice 430 of authentication system 400.

FIG. 5 is a block diagram showing an example of a network environment500 on which the techniques described herein may be implemented. Networkenvironment 500 includes computing devices 502, 504, 506, 508, 510 thatare configured to communicate with a first server system 512 and/or asecond server system 514 over a network 511. Computing devices 502, 504,506, 508, 510 have respective users 522, 524, 526, 528, 530 associatedtherewith. The first and second server systems 512, 514 each include acomputing device 516, 517 and a machine-readable repository, or database518, 519. Example environment 500 may include many thousands of Websites, computing devices and servers, which are not shown.

Network 511 may include a large computer network, examples of whichinclude a local area network (LAN), wide area network (WAN), theInternet, a cellular network, or a combination thereof connecting anumber of mobile computing devices, fixed computing devices, and serversystems. The network(s) included in network 511 may provide forcommunications under various modes or protocols, examples of whichinclude Transmission Control Protocol/Internet Protocol (TCP/IP), GlobalSystem for Mobile communication (GSM) voice calls, Short Electronicmessage Service (SMS), Enhanced Messaging Service (EMS), or MultimediaMessaging Service (MMS) messaging, Ethernet, Code Division MultipleAccess (CDMA), Time Division Multiple Access (TDMA), Personal DigitalCellular (PDC), Wideband Code Division Multiple Access (WCDMA),CDMA2000, or General Packet Radio System (GPRS), among others.Communication may occur through a radio-frequency transceiver. Inaddition, short-range communication may occur, e.g., using a BLUETOOTH,WiFi, or other such transceiver system.

Computing devices 502, 504, 506, 508, 510 enable respective users 522,524, 526, 528, 530 to access and to view documents, e.g., web pagesincluded in web sites. For example, user 522 of computing device 502 mayview a web page using a web browser. The web page may be provided tocomputing device 502 by server system 512, server system 514 or anotherserver system (not shown).

In example environment 500, computing devices 502, 504, 506 areillustrated as desktop-type computing devices, computing device 508 isillustrated as a laptop-type computing device 508, and computing device510 is illustrated as a mobile computing device. It is noted, however,that computing devices 502, 504, 506, 508, 510 may include, e.g., adesktop computer, a laptop computer, a handheld computer, a televisionwith one or more processors embedded therein and/or coupled thereto, atablet computing device, a personal digital assistant (PDA), a cellulartelephone, a network appliance, a camera, a smart phone, an enhancedgeneral packet radio service (EGPRS) mobile phone, a media player, anavigation device, an electronic messaging device, a game console, or acombination of two or more of these data processing devices or otherappropriate data processing devices. In some implementations, acomputing device may be included as part of a motor vehicle (e.g., anautomobile, an emergency vehicle (e.g., fire truck, ambulance), a bus).

Users interacting with computing devices 502, 504, 506, 508, 510 caninteract with a secure transaction service 523 hosted, e.g., by theserver system 512, by authenticating themselves and issuing instructionsor orders through the network 511. The secure transactions may include,e.g., e-commerce purchases, financial transactions (e.g., online bankingtransactions, credit or bank card transactions, loyalty reward pointsredemptions), or online voting. The secured transaction service mayinclude an authentication module 525 that coordinates authentication ofusers from the secured server's side of the interaction. In someimplementations, authentication module 525 may receive image data from auser device (e.g., computing devices 502, 504, 506, 508, 510) thatincludes one or more images of the eye of a user (e.g., users 522, 524,526, 528, 530). The authentication module may then process the imagedata to authenticate the user by determining if the image data matches areference record for a recognized user identity that has been previouslycreated based on image data collected during an enrollment session.

In some implementations, a user who has submitted a request for servicemay be redirected to an authentication module 540 that runs on separateserver system 514. Authentication module 540 may maintain referencerecords for registered or enrolled users of the secure transactionservice 523 and may also include reference records for users of othersecure transaction services. Authentication module 540 can establishsecure sessions with various secure transaction services (e.g., securetransaction service 523) using encrypted network communications (e.g.,using a public key encryption protocol) to indicate to the securetransaction service whether the user has been authenticated as aregistered or enrolled user. Much like authentication module 525,authentication module 540 may receive image data from the requestinguser's computing device (e.g., computing devices 502, 504, 506, 508,510) and may process the image data to authenticate the user. In someimplementations, the authentication module may determine liveness scoresfor images received from a user and may accept or reject the imagesbased on the liveness scores. When an image is rejected as a spoofattempt presenting something other than a live eye, the authenticationmodule 540 may send network communication messages to report the spoofattempt to the secure transaction service 523 or a relevant authority.

The authentication module 540 may be implemented as software, hardwareor a combination of software and hardware that is executed on aprocessing apparatus, such as one or more computing devices (e.g., acomputer system as illustrated in FIG. 9).

A user device (e.g., computing device 510) may include an authenticationapplication 550. The authentication application 550 may facilitate theauthentication of the user as a registered or enrolled user identity forthe purpose of accessing secured services (e.g., secure transactionservice 523) through a network 511. For example, the authenticationapplication 550 may be a mobile application or another type clientapplication for interacting with a server-side authentication module(e.g., authentication module 540). The authentication application 550may drive a sensor (e.g., a camera connected to or integrated with auser computing device) to capture one or more images of a user (e.g.,user 530) that include views of the white of the user's eye. Theauthentication application 550 may prompt (e.g., through a display orspeakers) the user to pose for image capture. For example, the user maybe prompted to face the sensor and direct their gaze left or right toexpose large portions of the white of an eye to the sensor.

In some implementations, the authentication application 550 transmitscaptured image data to an authentication module (e.g., authenticationmodules 525 or 540) on a remote server (e.g., server systems 512 or 514)through the network 511. The collection of image data from user mayfacilitate enrollment and the creation of a reference record for theuser. The collection of image data from user may also facilitateauthentication against a reference record for a user identity.

In some implementations, additional processing of the image data forauthentication purposes may be performed by the authenticationapplication 550 and the results of that processing may be transmitted toan authentication module (e.g., authentication modules 525 or 540). Inthis manner, the authentication functions may be distributed between theclient and the server side processes in a manner suited a particularapplication. For example, in some implementations, the authenticationapplication 550 determines liveness scores for captured images andrejects any images with liveness scores that indicate a spoof attack. Ifa liveness score indicates a live eye, image data, based on the acceptedimages, may be transmitted to a server side authentication module (e.g.,authentication modules 525 or 540) for further analysis.

In some implementations, the authentication application accesses areference record for a user identity and conducts a full authenticationprocess, before reporting the result (e.g., user accepted or rejected)to a server side authentication module.

The authentication application 550 may be implemented as software,hardware or a combination of software and hardware that is executed on aprocessing apparatus, such as one or more computing devices (e.g., acomputer system as illustrated in FIG. 9).

FIG. 6 is a flow chart of an example process 600 for authenticating anindividual based on one or more images of the white of an eye. Aliveness score is determined for the obtained images and used to acceptor reject the images. When an image of a live eye is detected andaccepted, the image is further analyzed to determine a match score byextracting features from the image and comparing the features to areference record. The user is then accepted or rejected based on thematch score.

The process 600 can be implemented, for example, by the authenticationmodule 440 in the computing device 430 of FIG. 4. In someimplementations, the computing device 430 is a data processing apparatusthat includes one or more processors that are configured to performactions of the process 600. For example, the data processing apparatusmay be a computing device (e.g., as illustrated in FIG. 9). In someimplementations, process 600 may be implemented in whole or in part bythe authentication application 550 that is executed by a user computingdevice (e.g., computing device 510). For example, the user computingdevice may be a mobile computing device (e.g., mobile computing device950 of FIG. 9). In some implementations, process 600 may be implementedin whole or in part by the authentication module 540 that is executed bya user server system (e.g., server system 514). In some implementations,the server system 514 is a data processing apparatus that includes oneor more processors that are configured to perform actions of the process600. For example, the data processing apparatus may be a computingdevice (e.g., as illustrated in FIG. 9). In some implementations, acomputer readable medium can include instructions that when executed bya computing device (e.g., a computer system) cause the device to performactions of the process 600.

One or more images of an eye are obtained 602. The images include a viewof a portion of a vasculature of the eye external to a corneal limbusboundary of the eye. The obtained images may be monochrome orrepresented in various color spaces (e.g., RGB, SRGB, HSV, HSL, orYCbCr). In some implementations, an image may be obtained using a lightsensor (e.g., a digital camera, a 3D camera, or a light field sensor).The sensor may be sensitive to light in various ranges of wavelength.For example, the sensor may be sensitive to the visible spectrum oflight. In some implementations, the sensor is paired with a flash ortorch that can be pulsed to illuminate objects in view of the sensor.The capture of images can be synchronized or time-locked with pulsing ofa flash. In some implementations, the sensor captures a sequence ofimages that can be used to track motion of objects within the field ofview of the sensor. The sensor can include one more settings thatcontrol image capture (e.g., focus distance, flash intensity, exposure,and white balance). The images can collectively include a plurality offocus distances. For example, a sequence of images may be captured, eachimage captured with a different focus distance settings for the sensorand/or some sensors (e.g., a light field sensor) can capture an imagethat is focused at a plurality of distances from the sensor. In someimplementations, the one or more images can be obtained 502 by receptionthrough a network interface (e.g., a network interface of server system514).

A liveness score can then be determined 604 for the one or more images.In some implementations, image data elements (e.g., a voxel, a pixel, aray, or a red, green or blue channel value) are input directly to atrained function approximator that outputs a liveness score. Thefunction approximator can be trained using data corresponding totraining images of both live eyes and spoof props that are paired withideal scores (e.g., 1 for live eyes and 0 for spoof props). The functionapproximator or classifier models the mapping from input data (i.e., thetraining image data or features) to output data (i.e., the resultingliveness score or binary decision) with a set of model parameters. Themodel parameter values are selected using a training algorithm that isapplied to the training data. For example, the function approximator canbe based the following models: linear regression, Volterra series,Wiener series, radial basis functions, kernel methods, polynomialmethods; piecewise linear models, Bayesian classifiers, k-nearestneighbor classifiers, neural networks, support vector machines, or fuzzyfunction approximator. Other models are possible. In someimplementations, the liveness score may be binary.

In some implementations, the liveness score is determined 604 based onone or more liveness metrics that in turn are determined based on theobtained images. Some examples of such a process are described inrelation to FIG. 7.

For example, the liveness score can be determined 604 by theauthentication module 440, the authentication application 550,authentication module 525, or the authentication module 540.

The liveness score is checked 606 to determine whether the images arelikely to include a view of a live eye. In some implementations, theliveness score can be compared to a threshold.

If the liveness score indicates a low likelihood of a live eye and thusa high likelihood of a spoof attack, the one or more images are rejected608. In some implementations, a spoof attack may then be reported 610.In some implementations, the spoof attack is reported 610 through adisplay or speaker (e.g., with an alarm sound or flashing display). Insome implementations, the spoof attack is reported 610 by transmittingone or messages over a network using a network interface. The user maythen be rejected 630 and denied access to secured device or service.

In some implementations (not shown), a check may be performed to verifythat obtained images were captured from a particular sensor and thatthat the particular sensor has not been bypassed by the submission ofspoofed image data. For example, during image capture, one or moresensor configuration settings may be adjusted to take on differentsettings during capture of two or more of the images. These differentsettings are expected to be reflected in the obtained image data. Ifchanges in the image data between images with different settings, it mayindicate that the sensor has been bypassed by a spoof attack. Forexample, sensor configuration settings controlling focus, exposure time,or white balance may be adjusted in this manner. If correspondingchanges in the obtained image data are not detected, the obtained imagesmay be rejected 608.

If the liveness score indicates a high likelihood that live eye isdepicted in the images, the one or more images are accepted 616 andsubjected to further analysis to complete the authentication process.

The one or more images may be segmented 620 to identify regions ofinterest that include the best views of vasculature in the white of aneye. In some implementations, anatomical landmarks (e.g., an iris, itscenter and corneal limbus boundary, eye corners, and the edges ofeyelids) may be identified in the one or more images. Regions ofinterest within the image may be identified and selected based on theirlocation in relation to the identified anatomical landmarks. Forexample, regions of interest may be located in the white of eye to theleft, right, above, or below the iris. In some implementations, theselected regions of interest are tiled to form a grid covering a largerportion of the white of the eye. In some implementations, the selectedregions of the image are noncontiguous (e.g., neighboring regions mayoverlap or neighboring regions may have space between them). Theselected regions of interest may correspond to regions of interestselected from a reference image on which data in a reference record isbased.

In some implementations, eye corners are found by fitting curves on thedetected portions of the eyelid over sclera, and then extrapolating andfinding the intersection of those curves. If one intersection (corner)cannot be found due to the fact that the iris was too close (e.g., dueto gaze direction), then a template from the same corner area but fromthe opposite gaze direction photo can be derived and applied to theproblematic corner neighborhood in the image at hand, and the maximumcorrelation location can be tagged as the corner.

In some implementations, eyelids are found by adaptive thresholdingmethods that find the white of the eye from the image, which border theeyelids. The sclera mask itself can be corrected by morphologicaloperations (e.g., convex hull) to take out aberrations.

In some implementations, the limbic boundary is found from the scleramask as where the sclera ends due to its termination at the iris limbicboundary.

In some implementations, the iris center is found through multiplemethods. If the eye color is light, the center of the pupil can be foundas the iris center. If the iris is too dark, then the center of theellipsoid fitted to the limbic boundary and its center is found, or itis determined as the focal point of normal rays (i.e., linesperpendicular to tangents to the limbic boundary) converging around theiris center, or a combination of the above methods.

The image regions may be preprocessed 622 to enhance the view of avasculature within an image. In some implementations, preprocessing 622includes Color Image Enhancement and Contrast Limited Adaptive HistogramEqualization (CLAHE) which enhances the contrast of the intensity image.CLAHE operates in small regions of the image called tiles. Each tile'scontrast is enhanced such that the histogram of the output approximatelymatches the histogram specified by particular distribution (e.g.,uniform, exponential, or Rayleigh distribution). The neighboring tilesare then combined using bilinear interpolation to eliminate theartificially induced boundaries. In some implementations, the images maybe enhanced by selecting one of the red, green or blue color componentswhich has the best contrast between the vessels and the background. Thegreen component may be preferred because it may provide the bestcontrast between vessels and background.

In some implementations, preprocessing 622 includes application of amulti-scale enhancement filtering scheme to enhance the intensity of theimages thereby facilitating detection and subsequent extraction featuresof the vascular structure. The parameters of the filter may bedetermined empirically so as to account for variations in the girth ofthe blood vessels. The algorithm used may have good sensitivity, goodspecificity for curves and suppresses objects of other shapes. Thealgorithm may be based on the second derivatives of the image. First,since the second derivatives are sensitive to noise, an image segment isconvolved with a Gaussian function. The parameter a of the Gaussianfunction may correspond to the thickness of a blood vessel. Next, foreach image data element, a Hessian matrix may be built and eigenvaluesλ1 and λ2 may be computed. In each Hessian matrix ridges are defined aspoints where the image has an extremum in the direction of thecurvature. The direction of the curvature is the eigenvector of thesecond order derivatives of the image that corresponds to the largestabsolute eigenvalue λ. The sign of the eigenvalue determines if it is alocal minimum λ>0 or maximum λ<0. The computed eigenvalues are then usedto filter the blood vessel line with the equations:I_line(λ1,λ2)=|λ1|−|λ2| if λ1<0 and I_line(λ1,λ2)=0 if λ1≧0The diameter of the blood vessels varies but the algorithm assumes thediameter is within an interval, [d0, d1]. Gaussian smoothing filters maybe employed in the scale range of [d0/4, d1/4]. This filtering may berepeated N times based on the smoothing scales:σ1=d0/4,σ2=r*σ1,σ2=r^2*σ1, . . . σ2=r^(N−1)*σ1=d1/4This final output may be the maximum value from the output of allindividual filters of N scales.

Features are determined 624 for each image region that reflect structureor properties of the vasculature visible in that region of the user'seye. In some implementations, minutia detection methods may be used toextract features of the user's vasculature. Examples of minutiadetection processes are described in U.S. Pat. No. 7,327,860.

In some implementations, features may be determined 624 in part byapplying a set of filters to the image regions that correspond totexture features of those image regions. For example, features may bedetermined in part by applying a set of complex Gabor filters at variousangles to the image. The parameters of the filter can be determinedempirically so as to account for variations in the spacing, orientation,and girth of the blood vessels. The texture features of an image can bemeasured as the amount of sharp visible vasculature in the region ofinterest. This quality can be determined with the ratio of area of sharpvisible vasculature to the area of region of interest. The phase ofGabor filtered image, when binarized using a threshold, may facilitatedetection and reveal sharp visible vasculature.

The phase of complex Gabor filtered image reflects the vascular patternsat different angles when the Gabor filter kernel is configured withSigma=2.5 Pixel, Frequency=6; and Gamma=1. The choice of frequency maybe dependent on the distance between vessels, which in turn depends onthe resolution and distance between image acquisition system and thesubject. These parameters may be invariant to images. For example, thekernel parameters may be derived for eye images captured at a distanceof 6-12 centimeters away from the eye using a particular sensor (e.g. aback camera on a smartphone) and the segmented sclera region can beresized to a resolution of (e.g., 401×501 pixels) for the analysis.Visible eye surface vasculature may be spread in all the directions onwhite of the eye. For example, the Gabor kernels may be aligned acrosssix different angles (Angle=0, 30, 60, 90, 120, and 150 degrees). Thephase of the Gabor-filtered images may vary from −π to +π radians. Phasevalues above 0.25 and below −0.25 radians may correspond to vascularstructures. To binarize the phase image using thresholding, all valuesof phase above 0.25 or below −0.25 may be set to one and the remainingvalues to zero. This may result in a sharp vasculature structure incorresponding phase image. This operation can be performed for imagesresulting from applications of all six Gabor kernels at differentangles. All the six binarized images may be added, to reveal a fine andcrisp vascular structure. In some implementations, a vector of theelements of the binarized phase images may be used as a feature vectorfor comparing the image to a reference record. In some implementations,differences in textural features between image regions of interest maybe used as a feature vector. The sum of all the 1's in a binarized imagearea divided by the area of region of interest may reflect the extent ofthe visible vasculature.

A match score is determined 626 based on the features and correspondingfeatures from a reference record. The reference record may include databased at least in part on one or more reference images captured duringan enrollment or registration process for a user. In someimplementations, a match score may be determined 626 as a distance(e.g., a Euclidian distance, a correlation coefficient, modifiedHausdorff distance, Mahalanobis distance, Bregman divergence, cosinesimilarity, Kullback-Leibler distance, and Jensen-Shannon divergence)between a vector of features extracted from the one or more obtainedimages and a vector of features from the reference record. In someimplementations, the match score may be determined 626 by inputtingfeatures extracted from the one or more obtained images and featuresfrom the reference record to a trained function approximator.

In some implementations, a quality based fusion match score isdetermined 626 based on match scores for multiple images of the samevasculature. In some implementations, match scores for multiple imagesare combined by adding the match scores together in weighted linearcombination with weights that respectively depended on quality scoresdetermined for each of the multiple images. Other examples of techniquesthat may be used to combine match scores for multiple images based ontheir respective quality scores include hierarchical mixtures, sum rule,product rule, gated fusion, Dempster-Shafer combination, and stackedgeneralization, among others.

In some implementations, the match score is determined 626 by anauthentication module (e.g., authentication module 440 running oncomputing device 430).

The match score may be checked 628 to determine whether there is a matchbetween the one or more obtained images and the reference record. Forexample the match score may be compared to a threshold. A match mayreflect a high likelihood that the user whose eye is depicted in the oneor more obtained images is the same as an individual associated with thereference record.

If there is no match, then the user may be rejected 630. As a result,the user may be denied access to a secure device or service (e.g.,secured device 450 or secure transaction service 523). In someimplementations, the user may be informed of the rejection 630 through amessage that is shown on a display or played through a speaker. In someimplementations, the rejection may be affected by transmitting a messagethrough a network reflecting the status of the user as rejected. Forexample, the authentication module 540, upon rejecting user 530 maytransmit a rejection message to the secure transaction server 523 usinga network interface of server system 514. The authentication module 540may also send a rejection message to user computing device 510 in thisscenario.

If there is a match, then the user may be accepted 632. As a result, theuser may be granted access to a secure device or service (e.g., secureddevice 450 or secure transaction service 523). In some implementations,the user may be informed of the acceptance 632 through a message that isshown on a display or played through a speaker. In some implementations,the acceptance may be affected by transmitting a message through anetwork reflecting the status of the user as accepted. For example, theauthentication module 540, upon accepting user 530 may transmit anacceptance message to the secure transaction server 523 using a networkinterface of server system 514. The authentication module 540 may alsosend an acceptance message to user computing device 510 in thisscenario.

FIG. 7 is a flow chart of an example process 700 for determining aliveness score for one or more images of an eye. One or more livenessmetrics are determined 710 for the images and the liveness score isdetermined 730 based on the one or more liveness metrics.

The process 700 can be implemented, for example, by the authenticationmodule 440 in the computing device 430 of FIG. 4. In someimplementations, the computing device 430 is a data processing apparatusthat includes one or more processors that are configured to performactions of the process 700. For example, the data processing apparatusmay be a computing device (e.g., as illustrated in FIG. 9). In someimplementations, process 700 may be implemented in whole or in part bythe authentication application 550 that is executed by a user computingdevice (e.g., computing device 510). For example, the user computingdevice may be a mobile computing device (e.g., mobile computing device950 of FIG. 9). In some implementations, process 700 may be implementedin whole or in part by the authentication module 540 that is executed bya user server system (e.g., server system 514). In some implementations,the server system 514 is a data processing apparatus that includes oneor more processors that are configured to perform actions of the process700. For example, the data processing apparatus may be a computingdevice (e.g., as illustrated in FIG. 9). In some implementations, acomputer readable medium can include instructions that when executed bya computing device (e.g., a computer system) cause the device to performactions of the process 700.

Process 700 starts 702 when one or more images are received forprocessing. For example, the one or more images may be encoded as two,three, or four dimensional arrays of data image elements (e.g., a pixel,a voxel, a ray, or a red, green or blue channel value).

One or more liveness metrics may then be determined 710 based on the oneor more images. In this example, a behavioral metric is determined 712based on detected movement of the eye as the eye appears in a pluralityof the images. The behavioral metric can be a measure of deviation ofdetected movement and timing from expected movement of the eye.

In some implementations, photic stimuli (e.g., a flash pulse, a changebrightness of an LCD display) are applied to a subject while the imagesare being captured. In response to these photic stimuli, a pupil of alive eye is expected to constrict to adapt to the change inillumination. Further the pupil is expected to constrict in a certainway over time with, an onset time that depends on the reaction time of auser, a duration of the constriction movement required to reach a newsteady state pupil diameter, an average velocity of constriction, and aparticular acceleration curve for the constriction motion. By examininga sequence of images captured before and after the start of a photicstimulus, one or more parameters of a detected motion may be determinedand compared to one or more parameters of the expected motion. Asubstantial deviation from the expected motion in response to the photicstimuli may indicate the subject in view of the camera is not a live eyeand there is spoof attack occurring. An example of this implementationis described in relation to FIG. 8A.

In some implementations, a behavioral metric may be determined 712 byapplying external stimuli (e.g., prompts instructing a user to directtheir gaze or a display showing a moving object that user follows withtheir eyes) to a subject during image capture and tracking the gazetransitions that may result. In response to these external stimuli, alive eye is expected to move in a certain way over time. Some parametersof an expected gaze transition motion may include an onset time thatdepends on the reaction time of a user, a duration of the gazetransition movement required to reach a new steady state gaze direction,an average velocity, and a particular acceleration curve for the gazetransition motion. By examining a sequence of images captured before andafter the start of an external stimulus, one or more parameters of adetected motion may be determined and compared to one or more parametersof the expected motion. A substantial deviation from the expected motionin response to the external stimuli may indicate the subject in view ofthe camera is not a live eye and there is spoof attack occurring. Anexample of this implementation is described in relation to FIG. 8B.

In some implementations, determining 712 a behavioral metric may includedetecting flow of blood in a vasculature of the white of the eye (e.g.vasculature in the episclera). A sequence of images may be analyzed todetect changes in hue and changes in visible width of veins and bloodvessels in the white of the eye that occur over time. The vasculature ofa live eye is expected to exhibit regular changes in vessel widths andhue that correspond to a user's pulse. A substantial deviation from theexpected blood flow pattern may indicate the subject in view of thecamera is not a live eye and there is spoof attack occurring.

For example, consider a section of vasculature between two branchingpoints or sharp bends. The tubular body of that vessel change shape andcolor when the heart is pumping blood through it. In someimplementations, 300 frames or images may be captured over a 10 secondperiod. Image regions may be registered from one capture instance to thenext. The blood flow may then be measured by comparing the physicaldimensions (2d or 3d) of points of interest along blood vessels overtime, as well as the coloration of those vessels over time. In thismanner, changes consistent with pulse can be detected. For example ifthe measure “pulse” signal resembled a square wave that would not beconsistent with a natural circulatory system. If it consisted of spikes(both vessel dilation and appropriate coloration change) at regularintervals over time within normal range for a human user, possibly evenfor the specific user, then the input is likely to correspond to a reallive pulse. A distance between the measure pulse signal and an expectedpulse signal may be determined to assess the likelihood that the subjectis a live eye rather than a spoof attack.

In some implementations, the expected motion parameters are specific toa particular user and are determined during an enrollment session andstored as part of a reference record for the particular user. In someimplementations, the expected motion parameters are determined for apopulation based on a large collection of user data or offline studies.

For example, a behavioral metric may be determined 712 by anauthentication module or application (e.g., authentication module 440).

In this example, a spatial metric is determined 714 based on a distancefrom a sensor to a landmark that appears in a plurality of the imageseach having a different respective focus distance. Focus distance is thedistance from a sensor to a point in its field of view that is perfectlyin focus. For some sensors, the focus distance may be adjusted fordifferent images by adjusting a focus configuration setting for thesensor. For example, a landmark (e.g., an iris, an eye corner, a nose,an ear, or a background object) may be identified and located in theplurality of images with different focus distances. A landmark'srepresentation in a particular image has a degree of focus that dependson how far the object corresponding to the landmark is from an in focuspoint in the field of view of the sensor. Degree of focus is a measureof the extent to the image of the landmark is blurred by optical effectsin the light sensor (e.g., due to diffraction and convolution with theaperture shape). The degree of focus for a landmark in a particularimage may be estimated by determining the high frequency components ofthe image signal in the vicinity of the landmark. When the landmark isin focus, more high frequency components in its vicinity are expected.When the degree of focus is low for a landmark, smaller high frequencycomponents are expected. By comparing the degree of focus for a landmarkin images with different focus distances, the distance from the sensorto the landmark may be estimated. In some implementations, distancesfrom the sensor (e.g. a camera) for multiple landmarks are estimated toform a topological map (consisting of a set of three-dimensionallandmark positions) of the subject in the view of the sensor. Thepositions of these landmarks in the space viewed by the camera may becompared to a model by determining a spatial metric (e.g., the meansquare difference between the detected location of one or more landmarksand the corresponding modeled locations of the one or more landmarks)that reflects deviation from the model.

In some implementations, the spatial metric is a measure of thedeviation of the subject from a two-dimensional plane. One possiblespoofing strategy is to present a two dimensional image (e.g., aphotograph) of a registered user's eye to the sensor. However thelocations of landmarks (e.g., an eye, nose, mouth, and ear) in the twodimensional image will occur in a two dimensional plane, unlikelandmarks in and around a real live eye. For example, the locations ofmultiple landmarks may be fit to the closest two dimensional plane andthe average distance of the landmarks from this fit plane can bedetermined as the spatial metric. A high value for this spatial metricmay indicate a three-dimensional subject and a higher likelihood thatthe subject is a live eye, while a low value may indicate a higherlikelihood that the subject is a two-dimensional spoof attack.

In some implementations, the spatial metric is a measure of thedeviation of the subject from an expected three-dimensional shape. Athree-dimensional model including locations of landmarks correspondingto an expected shape for a subject including the live eye of a user maybe used for comparison to the detected landmark locations. In someimplementations, the relative positions of landmarks on a particularuser's face may be determined during an enrollment session and usedgenerate a three-dimensional model that is stored as part of a referencerecord. In some implementations, three-dimensional model for apopulation of users may be determined based on an aggregation ofmeasurements or studies of a large number of people. Various types ofmetrics can be used as a spatial metric to compare the detected landmarkpositions to the expected shape (e.g., a Euclidian distance, acorrelation coefficient, modified Hausdorff distance, Mahalanobisdistance, Bregman divergence, Kullback-Leibler distance, andJensen-Shannon divergence).

In some implementations, determining 714 the spatial metric comprisesdetermining parallax of two or more landmarks that appear in a pluralityof the images. Parallax is the apparent displacement of an observedobject due to a change in the position of the observer. A plurality ofimages taken from different perspectives on the subject may result inlandmarks within the images appearing to move by different amountsbecause of differences in their distance from the sensor. This parallaxeffect may be measured and used as a spatial metric that reflects thethree-dimensional nature of a subject in the view of the sensor. If allthe landmarks in in the images undergo the same apparent displacementdue to relative motion of the sensor, i.e., the difference in theparallax effect for the landmarks is small, then the subject viewed bythe camera has higher likelihood of being a two-dimensional spoofattack. In some implementations, the sensor is moved about the subjectduring image capture to collect image data from different orientationsrelative to the subject. For example, a single camera may be rotated orslid slightly or multiple cameras at different positions may be used forimage capture. In some implementations, a user is prompted to move inorder to change the relative orientation of the subject and the sensor.In some implementations, it is assumed that sensor will naturally moverelative to the subject. For example, where the sensor is a camera inhand-held user device (e.g. a smartphone or tablet) the sensor maynaturally move relative to the users face due to involuntary hapticmotion.

For example, a spatial metric may be determined 714 by an authenticationmodule or application (e.g., authentication module 440).

In this example, a reflectance metric is determined 716 based ondetected change in surface glare or specular reflection patterns on asurface of the eye as the eye appears in a plurality of the images. Thereflectance metric may be a measure of changes in glare or specularreflection patches on the surface of the eye. As the illumination of aneye in the view of the sensor changes, due to relative motion of the eyeand a light source or to changes in a dynamic light source (e.g., aflash, LCD screen, or other illumination element), the glare andspecular reflection patterns visible on the eye are expected to changeby appearing, disappearing, growing, shrinking, or moving. In someimplementations, changes in the illumination are induced during imagecapture by photic stimuli (e.g. a flash pulse) or external stimuli (e.g.a prompt instructing a user to change gaze direction). For example,glare, including its boundaries, can be detected by thresholding acontrast enhanced image to find the whitest spots. Detected changes inthe glare or specular reflection patterns on the eye in the images maybe compared to expected changes in the these patterns by determining 716a reflectance metric that measures the deviation of the detected changefrom an expected change.

We are looking for changes in the area and shape of this glare. One canalso look at the ratio of circumference to area of the glare patch.

In some implementations, a flash may be pulsed to illuminate the subjectwhile one or more of the images are being captured. Glare from the flashmay be detected on the eye as it appears in the images. The pulsing ofthe flash may be synchronized with image capture so that the timedifference between when the flash is pulsed and when the correspondingglare appears in the images can be measured. The reflectance metric maybe based on this time difference. Large deviations from the expectedsynchronization or time-lock of the flash pulse and the onset of acorresponding glare or specular reflection may indicate a spoof attack.For example, a replay attack uses pre-recorded video of a capturingscenario. Glare changes in the pre-recorded video are unlikely to betime-locked to a real-time flash event during the current session.Another example is presenting a printed image of an eye to the sensor,in which case glare may spread across the printed image in anunnaturally uniform manner or may not change perceivably due to a lackof moisture on the viewed surface. If no corresponding glare or specularreflection is detected, the reflectance metric may be determined to be alarge arbitrary number corresponding to poor synchronization or a lackof time-lock between the flash and detected glare or specularreflection.

In some implementations, changes in illumination may be detected aschanges as changes in the uniformity of a glare pattern caused bygreater amounts of fine three-dimensional texture of a white of the eyebeing revealed as the intensity of the illumination is increased. Forexample, a flash may be pulsed to illuminate the subject at higherintensity while one or more of the images are being captured. Finethree-dimensional texture of a white of the eye may be detected bymeasuring uniformity of a pattern of glare on the eye in the imagesbefore and after the onset of the flash pulse. For example, theuniformity of the glare of specular reflection pattern may be measuredas the ratio of circumference to the area of the glare. The larger thisnumber compared to 2/R, the more non-circular and non-uniform the glare(R is the estimated radius of the glare patch). In some implementations,a function approximator (e.g., a neural network) is trained todistinguish between specular reflection patterns recorded from liveeyeballs vs. synthesized eyeballs, such as 3D printed eyeballs, using asensor with an illumination element (e.g., a flash).

For example, a reflectance metric may be determined 716 by anauthentication module or application (e.g., authentication module 440).

In some implementations (not shown), additional liveness metrics may bedetermined 710. For example, a metric reflecting the extent of saccadicmotion of the eye in the view of the sensor may be determined. An irisof the eye may be landmarked in a sequence of images so that itsposition or orientation may be tracked. This sequence of positions ororientations may be analyzed to determine extent of saccadic motion, byfiltering for motions at a particular frequency associated with normalsaccadic motion.

In some implementations, a liveness metric may be determined 710 thatreflects the extent of halftones in a captured image. Halftones areartifacts of digital printed images that may be used in a spoof attackand thus their presence may indicate a high likelihood of a spoofattack. For example, one or more images may be captured using a reduceddynamic range for the sensor (e.g., a camera) so that a finer resolutionin intensity of detected light is achieved in a range within which itoccurs in the captured images. In this manner, the intensity or colorscale can be zoomed in to reveal more subtle changes in the level of thedetected image signal. If the captured images are of a live eye, it isexpected that the range of color or intensity values detected willcontinue to vary continuously. In contrast, a spoofed image (e.g. adigital photograph presented to the sensor) may exhibit largediscontinuous jumps corresponding to halftones. The extent of halftonesin the image may be measured in a variety of ways (e.g., as average ormaximum eigenvalues of a Hessian matrix evaluated in a region of theimage or as high frequency components of the image signal). In someimplementations, images with a halftone metric above a threshold arerejected. In some implementations, histograms of gray shades in theimage are generated and the uniformity of the distribution between greylevel bins (e.g., 256 bins) is measured.

In some implementations, the liveness metrics are determined 710 inparallel. In some implementations, the liveness metrics are determined710 in series.

The liveness score may then be determined 730 based on the one or moreliveness metrics. In some implementations, the liveness score isdetermined by inputting the one or more liveness metrics to a trainedfunction approximator.

The function approximator may be trained using data corresponding totraining images of live eyes and various spoof attacks that have beencorrectly labeled to provide a desired output signal. The functionapproximator models the mapping from input data (i.e., the trainingimage liveness metrics) to output data (i.e., a liveness score) with aset of model parameters. The model parameter values are selected using atraining algorithm that is applied to the training data. For example,the function approximator may be based the following models: linearregression, Volterra series. Wiener series, radial basis functions,kernel methods, polynomial methods; piecewise linear models, Bayesianclassifiers, k-nearest neighbor classifiers, neural networks, supportvector machines, or fuzzy function approximator. In someimplementations, the liveness score may be binary.

For example, the liveness score may be determined 730 based on one ormore liveness metrics by an authentication module or application (e.g.,authentication module 440).

The resulting liveness score may then be returned 740 and may be used byan authentication system (e.g., authentication system 400) in variety ofways. For example, the liveness score may be used to accept or rejectthe one or more images.

FIG. 8A is a flow chart of an example process 800 for determining abehavioral metric based on constriction of a pupil in response to photicstimulus. One or more photic stimuli are applied 810 to the scene viewedby a sensor (e.g. light sensor 420). For example, the photic stimuli mayinclude a flash pulse or a change in the brightness of a display (e.g.,an LCD display). A sequence of images is captured 812 by the sensorbefore and after the start of the photic stimuli. For example, thesequence of images may be captured at regularly spaced times (e.g., at10, 30, or 60 Hz) in an interval (e.g., 2, 5, or 10 seconds) thatincludes the start of the photic stimuli.

In some implementations, a pupil is landmarked in each of the capturedimages and the diameter of the pupil is determined 814 in each capturedimage. The diameter may be determined 814 relative to a startingdiameter for the pupil that is measured in one or more images capturedbefore the start of the photic stimuli.

The resulting sequence of pupil diameters measured in response to thephotic stimuli may be analyzed to determine 816 one or more motionparameters for the constriction of the pupil in response to the photicstimuli. In some implementations, motion parameters of the pupilconstriction may include an onset time of the constriction motionrelative to the start of the photic stimuli. Onset is the time delaybetween the start of the photic stimuli and the start of theconstriction motion. In some implementations, motion parameters of thepupil constriction may include a duration of the constriction motion.Duration is the length of time between the start of the constrictionmotion and the end of the constriction motion, when the pupil diameterreaches a new steady state value (e.g., after which the diameter doesnot change for a minimum interval of time). In some implementations,motion parameters of the pupil constriction may include a velocity ofpupil constriction. For example, the velocity may be determined asdifference in pupil diameters between two points in time divided by thelength of the time interval between them. In some implementations,motion parameters of the pupil constriction may include an accelerationof the pupil constriction in different time segments of constrictionperiod. For example, the acceleration may be determined as a differencein velocities between two intervals.

The behavioral metric may be determined 818 as a distance between one ormore determined motion parameters and one or more expected motionparameters. For example, the behavior metric may include a differencebetween a detected onset time and an expected onset time for a live eye.For example, the behavior metric may include a difference between adetected duration and an expected duration of pupil constriction for alive eye. In some implementations, a sequence of pupil diameters iscompared to an expected sequence of pupil diameters by determining adistance (e.g., a Euclidian distance, a correlation coefficient,modified Hausdorff distance, Mahalanobis distance, Bregman divergence,Kullback-Leibler distance, and Jensen-Shannon divergence) between thetwo sequences. In some implementations, a sequence of pupil constrictionvelocities for the constriction motion is compared to an expectedsequence of pupil constriction velocities by determining a distancebetween the two sequences of velocities. In some implementations, asequence of pupil constriction accelerations for the constriction motionis compared to an expected sequence of pupil constriction accelerationsby determining a distance between the two sequences of accelerations.

For example, the process 800 may be implemented by an authenticationmodule or application (e.g., authentication module 440) controlling alight sensor (e.g. light sensor 420) and an illumination element.

FIG. 8B is a flow chart of an example process 820 for determining abehavioral metric based on gaze transition of an iris in response toexternal stimulus. One or more external stimuli are applied 830 to auser viewed by a sensor (e.g. light sensor 420). For example, theexternal stimuli may include prompts instructing a user to direct theirgaze (e.g., look right, left, up, down, or straight ahead) during imagecapture. Prompts may be visual, auditory, and/or tactile. In someimplementations, the external stimuli can include an object that moveswithin in display for user's eyes to follow.

A sequence of images is captured 832 by the sensor before and after thestart of the external stimuli. For example, the sequence of images maybe captured at regularly spaced times (e.g., at 10, 30, or 60 Hz) in aninterval (e.g., 2, 5, or 10 seconds) that includes the start of theexternal stimuli.

In some implementations, an iris is landmarked in each of the capturedimages and the position or orientation of the iris is determined 834 ineach captured image. The position may be determined 834 relative to astarting position for the iris that is measured in one or more imagescaptured before the start of the external stimuli.

The resulting sequence of iris positions measured in response to theexternal stimuli may be analyzed to determine 836 one or more motionparameters for the gaze transition in response to the external stimuli.In some implementations, motion parameters of the gaze transition mayinclude an onset time of the gaze transition motion relative to thestart of the external stimuli. Onset is the time delay between the startof the external stimuli and the start of the gaze transition motion. Insome implementations, motion parameters of the gaze transition mayinclude a duration of the gaze transition motion. Duration is the lengthof time between the start of the gaze transition motion and the end ofthe gaze transition motion, when the iris reaches a new steady stateposition (e.g., after which the iris does not move for a minimuminterval of time). In some implementations, motion parameters of thegaze transition may include a velocity of gaze transition. For example,the velocity may be determined as difference in iris positions betweentwo points in time divided by the length of the time interval betweenthem. In some implementations, motion parameters of the gaze transitionmay include an acceleration of the gaze transition. For example, theacceleration may be determined as a difference in velocities between twointervals.

The behavioral metric may be determined 838 as a distance between one ormore determined motion parameters and one or more expected motionparameters. For example, the behavior metric may include a differencebetween a detected onset time and an expected onset time for a live eye.For example, the behavior metric may include a difference between adetected duration and an expected duration of pupil constriction for alive eye. In some implementations, a sequence of iris positions iscompared to expected sequence of iris positions by determining adistance (e.g., a Euclidian distance, a correlation coefficient,modified Hausdorff distance, Mahalanobis distance, Bregman divergence,Kullback-Leibler distance, and Jensen-Shannon divergence) between thetwo sequences. In some implementations, a sequence of transitionvelocities for the gaze transition motion is compared to expectedsequence of transition velocities by determining a distance between thetwo sequences of velocities. In some implementations, a sequence of gazetransition accelerations for the constriction motion is compared to anexpected sequence of gaze transition accelerations by determining adistance between the two sequences of accelerations.

For example, the process 820 may be implemented by an authenticationmodule or application (e.g., authentication module 440) controlling alight sensor (e.g. light sensor 420) and a prompting device (e.g., adisplay, a speaker, or a haptic feedback device).

FIG. 9 shows an example of a generic computer device 900 and a genericmobile computing device 950, which may be used with the techniquesdescribed here. Computing device 900 is intended to represent variousforms of digital computers, such as laptops, desktops, workstations,personal digital assistants, servers, blade servers, mainframes, andother appropriate computers. Computing device 950 is intended torepresent various forms of mobile devices, such as personal digitalassistants, cellular telephones, smartphones, and other similarcomputing devices. The components shown here, their connections andrelationships, and their functions, are meant to be exemplary only, andare not meant to limit implementations of the inventions describedand/or claimed in this document.

Computing device 900 includes a processor 902, memory 904, a storagedevice 906, a high-speed interface 908 connecting to memory 904 andhigh-speed expansion ports 910, and a low speed interface 912 connectingto low speed bus 914 and storage device 906. Each of the components 902,904, 906, 908, 910, and 912, are interconnected using various busses,and may be mounted on a common motherboard or in other manners asappropriate. The processor 902 can process instructions for executionwithin the computing device 900, including instructions stored in thememory 904 or on the storage device 906 to display graphical informationfor a GUI on an external input/output device, such as display 916coupled to high speed interface 908. In other implementations, multipleprocessors and/or multiple buses may be used, as appropriate, along withmultiple memories and types of memory. Also, multiple computing devices900 may be connected, with each device providing portions of thenecessary operations (e.g., as a server bank, a group of blade servers,or a multi-processor system).

The memory 904 stores information within the computing device 900. Inone implementation, the memory 904 is a volatile memory unit or units.In another implementation, the memory 904 is a non-volatile memory unitor units. The memory 904 may also be another form of computer-readablemedium, such as a magnetic or optical disk.

The storage device 906 is capable of providing mass storage for thecomputing device 900. In one implementation, the storage device 906 maybe or contain a computer-readable medium, such as a floppy disk device,a hard disk device, an optical disk device, or a tape device, a flashmemory or other similar solid state memory device, or an array ofdevices, including devices in a storage area network or otherconfigurations. A computer program product can be tangibly embodied inan information carrier. The computer program product may also containinstructions that, when executed, perform one or more methods, such asthose described above. The information carrier is a computer- ormachine-readable medium, such as the memory 904, the storage device 906,or a memory on processor 902, for example.

The high speed controller 908 manages bandwidth-intensive operations forthe computing device 900, while the low speed controller 912 manageslower bandwidth-intensive operations. Such allocation of functions isexemplary only. In one implementation, the high-speed controller 908 iscoupled to memory 904, display 916 (e.g., through a graphics processoror accelerator), and to high-speed expansion ports 910, which may acceptvarious expansion cards (not shown). In the implementation, low-speedcontroller 912 is coupled to storage device 906 and low-speed expansionport 914. The low-speed expansion port, which may include variouscommunication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet)may be coupled to one or more input/output devices, such as a keyboard,a pointing device, a scanner, or a networking device such as a switch orrouter, e.g., through a network adapter.

The computing device 900 may be implemented in a number of differentforms, as shown in the figure. For example, it may be implemented as astandard server 920, or multiple times in a group of such servers. Itmay also be implemented as part of a rack server system 924. Inaddition, it may be implemented in a personal computer such as a laptopcomputer 922. Alternatively, components from computing device 900 may becombined with other components in a mobile device (not shown), such asdevice 950. Each of such devices may contain one or more of computingdevice 900, 950, and an entire system may be made up of multiplecomputing devices 900, 950 communicating with each other.

Computing device 950 includes a processor 952, memory 964, aninput/output device such as a display 954, a communication interface966, and a transceiver 968, among other components. The device 950 mayalso be provided with a storage device, such as a microdrive or otherdevice, to provide additional storage. Each of the components 950, 952,964, 954, 966, and 968, are interconnected using various buses, andseveral of the components may be mounted on a common motherboard or inother manners as appropriate.

The processor 952 can execute instructions within the computing device950, including instructions stored in the memory 964. The processor maybe implemented as a chipset of chips that include separate and multipleanalog and digital processors. The processor may provide, for example,for coordination of the other components of the device 950, such ascontrol of user interfaces, applications run by device 950, and wirelesscommunication by device 950.

Processor 952 may communicate with a user through control interface 958and display interface 956 coupled to a display 954. The display 954 maybe, for example, a TFT LCD (Thin-Film-Transistor Liquid Crystal Display)or an OLED (Organic Light Emitting Diode) display, or other appropriatedisplay technology. The display interface 956 may comprise appropriatecircuitry for driving the display 954 to present graphical and otherinformation to a user. The control interface 958 may receive commandsfrom a user and convert them for submission to the processor 952. Inaddition, an external interface 962 may be provided in communicationwith processor 952, so as to enable near area communication of device950 with other devices. External interface 962 may provide, for example,for wired communication in some implementations, or for wirelesscommunication in other implementations, and multiple interfaces may alsobe used.

The memory 964 stores information within the computing device 950. Thememory 964 can be implemented as one or more of a computer-readablemedium or media, a volatile memory unit or units, or a non-volatilememory unit or units. Expansion memory 974 may also be provided andconnected to device 950 through expansion interface 972, which mayinclude, for example, a SIMM (Single In Line Memory Module) cardinterface. Such expansion memory 974 may provide extra storage space fordevice 950, or may also store applications or other information fordevice 950. Specifically, expansion memory 974 may include instructionsto carry out or supplement the processes described above, and mayinclude secure information also. Thus, for example, expansion memory 974may be provided as a security module for device 950, and may beprogrammed with instructions that permit secure use of device 950. Inaddition, secure applications may be provided via the SIMM cards, alongwith additional information, such as placing identifying information onthe SIMM card in a non-hackable manner.

The memory may include, for example, flash memory and/or NVRAM memory,as discussed below. In one implementation, a computer program product istangibly embodied in an information carrier. The computer programproduct contains instructions that, when executed, perform one or moremethods, such as those described above. The information carrier is acomputer- or machine-readable medium, such as the memory 964, expansionmemory 974, memory on processor 952, or a propagated signal that may bereceived, for example, over transceiver 968 or external interface 962.

Device 950 may communicate wirelessly through communication interface966, which may include digital signal processing circuitry wherenecessary. Communication interface 966 may provide for communicationsunder various modes or protocols, such as GSM voice calls, SMS, EMS, orMMS messaging, CDMA, TDMA, PDC, WCDMA, CDMA2000, or GPRS, among others.Such communication may occur, for example, through radio-frequencytransceiver 968. In addition, short-range communication may occur, suchas using a Bluetooth, WiFi, or other such transceiver (not shown). Inaddition, GPS (Global Positioning System) receiver module 970 mayprovide additional navigation- and location-related wireless data todevice 950, which may be used as appropriate by applications running ondevice 950.

Device 950 may also communicate audibly using audio codec 960, which mayreceive spoken information from a user and convert it to usable digitalinformation. Audio codec 960 may likewise generate audible sound for auser, such as through a speaker, e.g., in a handset of device 950. Suchsound may include sound from voice telephone calls, may include recordedsound (e.g., voice messages, music files, etc.) and may also includesound generated by applications operating on device 950.

The computing device 950 may be implemented in a number of differentforms, as shown in the figure. For example, it may be implemented as acellular telephone 980. It may also be implemented as part of asmartphone 982, personal digital assistant, or other similar mobiledevice.

Various implementations of the systems and techniques described here canbe realized in digital electronic circuitry, integrated circuitry,specially designed ASICs (application specific integrated circuits),computer hardware, firmware, software, and/or combinations thereof.These various implementations can include implementation in one or morecomputer programs that are executable and/or interpretable on aprogrammable system including at least one programmable processor, whichmay be special or general purpose, coupled to receive data andinstructions from, and to transmit data and instructions to, a storagesystem, at least one input device, and at least one output device.

These computer programs (also known as programs, software, softwareapplications or code) include machine instructions for a programmableprocessor, and can be implemented in a high-level procedural and/orobject-oriented programming language, and/or in assembly/machinelanguage. As used herein, the terms “machine-readable medium” and“computer-readable medium” refer to any computer program product,apparatus and/or device (e.g., magnetic discs, optical disks, memory,Programmable Logic Devices (PLDs)) used to provide machine instructionsand/or data to a programmable processor, including a machine-readablemedium that receives machine instructions as a machine-readable signal.The term “machine-readable signal” refers to any signal used to providemachine instructions and/or data to a programmable processor.

To provide for interaction with a user, the systems and techniquesdescribed here can be implemented on a computer having a display device(e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor)for displaying information to the user and a keyboard and a pointingdevice (e.g., a mouse or a trackball) by which the user can provideinput to the computer. Other kinds of devices can be used to provide forinteraction with a user as well; for example, feedback provided to theuser can be any form of sensory feedback (e.g., visual feedback,auditory feedback, or tactile feedback); and input from the user can bereceived in any form, including acoustic, speech, or tactile input.

The systems and techniques described here can be implemented in acomputing system that includes a back end component (e.g., as a dataserver), or that includes a middleware component (e.g., an applicationserver), or that includes a front end component (e.g., a client computerhaving a graphical user interface or a Web browser through which a usercan interact with an implementation of the systems and techniquesdescribed here), or any combination of such back end, middleware, orfront end components. The components of the system can be interconnectedby any form or medium of digital data communication (e.g., acommunication network). Examples of communication networks include alocal area network (“LAN”), a wide area network (“WAN”), and theInternet.

The computing system can include clients and servers. A client andserver are generally remote from each other and typically interactthrough a communication network. The relationship of client and serverarises by virtue of computer programs running on the respectivecomputers and having a client-server relationship to each other.

A number of embodiments have been described. Nevertheless, it will beunderstood that various modifications may be made without departing fromthe spirit and scope of the invention.

In addition, the logic flows depicted in the figures do not require theparticular order shown, or sequential order, to achieve desirableresults. In addition, other steps may be provided, or steps may beeliminated, from the described flows, and other components may be addedto, or removed from, the described systems. Accordingly, otherembodiments are within the scope of the following claims.

What is claimed is:
 1. A computer-implemented method comprising:capturing, using a light sensor, a plurality of images of a subjectincluding a view of an eye of the subject while changing one or moreparameters at different times during the capturing and according to apattern; determining a behavioral metric based on, at least, detectedmovement of the eye as the eye appears in a plurality of the images,wherein the behavioral metric is a measure of deviation of detectedmovement and timing from expected movement of the eye based on thepattern; determining a reflectance metric based on, at least, detectedchanges in surface glare or specular reflection patterns on a surface ofthe eye as the eye appears in a plurality of the images, wherein thereflectance metric is a measure of deviation in glare or specularreflection patterns on the surface of the eye based on the pattern; andrejecting or accepting the images based on, at least, the behavior andreflectance metrics.
 2. The method of claim 1 wherein determining thebehavioral metric comprises determining an onset, duration, velocity, oracceleration of pupil constriction in response to photic stimuli.
 3. Themethod of claim 1 wherein determining the behavioral metric comprisesdetermining an onset, duration, or acceleration of gaze transition inresponse to external stimuli.
 4. The method of claim 1, in whichdetermining the behavioral metric comprises detecting blood flow of theeye as the eye appears in a plurality of the images.
 5. The method ofclaim 1 wherein determining the reflectance metric comprises: detectingan appearance of glare on the eye from one or more flash pulses capturedby one or more of the images; and measuring a time difference betweenthe occurrence of the flash pulse and the appearance of a correspondingglare on the eye in the images.
 6. The method of claim 1 whereindetermining the reflectance metric comprises: detecting fine threedimensional texture of a white of the eye by measuring uniformity of apattern of glare on the eye from one or more flash pulses captured byone or more of the images.
 7. The method of claim 1, further comprising:determining a spatial metric according to the pattern based on, atleast, a distance from the light sensor to a landmark that appears in aplurality of the images each having a different respective focusdistance; and wherein rejecting or accepting the images further based onthe spatial metric.
 8. The method of claim 7 wherein the spatial metricis a measure of deviation of the subject from an expectedthree-dimensional shape.
 9. The method of claim 7 wherein determiningthe spatial metric comprises determining parallax of two or morelandmarks that appear in a plurality of the images.
 10. The method ofclaim 1 wherein a particular parameter is a flash pulse, a focus settingof the light sensor, brightness of a display, exposure of the lightsensor, white balance of the light sensor, or external stimuli.
 11. Asystem comprising: one or more data processing apparatus programmed toperform operations comprising: capturing, using a light sensor, aplurality of images of a subject including a view of an eye of thesubject while changing one or more parameters at different times duringthe capturing and according to a pattern; determining a behavioralmetric based on, at least, detected movement of the eye as the eyeappears in a plurality of the images, wherein the behavioral metric is ameasure of deviation of detected movement and timing from expectedmovement of the eye based on the pattern; determining a reflectancemetric based on, at least, detected changes in surface glare or specularreflection patterns on a surface of the eye as the eye appears in aplurality of the images, wherein the reflectance metric is a measure ofdeviation in glare or specular reflection patterns on the surface of theeye based on the pattern; and rejecting or accepting the images basedon, at least, the behavior and reflectance metrics.
 12. The system ofclaim 11 wherein determining the behavioral metric comprises determiningan onset, duration, velocity, or acceleration of pupil constriction inresponse to photic stimuli.
 13. The system of claim 11 whereindetermining the behavioral metric comprises determining an onset,duration, or acceleration of gaze transition in response to externalstimuli.
 14. The system of claim 11, in which determining the behavioralmetric comprises detecting blood flow of the eye as the eye appears in aplurality of the images.
 15. The system of claim 11 wherein determiningthe reflectance metric comprises: detecting an appearance of glare onthe eye from one or more flash pulses captured by one or more of theimages; and measuring a time difference between the occurrence of theflash pulse and the appearance of a corresponding glare on the eye inthe images.
 16. The system of claim 11 wherein determining thereflectance metric comprises: detecting fine three dimensional textureof a white of the eye by measuring uniformity of a pattern of glare onthe eye from one or more flash pulses captured by one or more of theimages.
 17. The system of claim 11 wherein the operations furthercomprise: determining a spatial metric according to the pattern basedon, at least, a distance from the light sensor to a landmark thatappears in a plurality of the images each having a different respectivefocus distance; and wherein rejecting or accepting the images furtherbased on the spatial metric.
 18. The system of claim 17 wherein thespatial metric is a measure of deviation of the subject from an expectedthree-dimensional shape.
 19. The system of claim 17 wherein determiningthe spatial metric comprises determining parallax of two or morelandmarks that appear in a plurality of the images.
 20. The system ofclaim 11 wherein a particular parameter is a flash pulse, a focussetting of the light sensor, brightness of a display, exposure of thelight sensor, white balance of the light sensor, or external stimuli.21. A non-transitory computer storage medium having instructions storedthere on that, when executed by data processing apparatus, performoperations comprising: capturing, using a light sensor, a plurality ofimages of a subject including a view of an eye of the subject whilechanging one or more parameters at different times during the capturingand according to a pattern; determining a behavioral metric based on, atleast, detected movement of the eye as the eye appears in a plurality ofthe images, wherein the behavioral metric is a measure of deviation ofdetected movement and timing from expected movement of the eye based onthe pattern; determining a reflectance metric based on, at least,detected changes in surface glare or specular reflection patterns on asurface of the eye as the eye appears in a plurality of the images,wherein the reflectance metric is a measure of deviation in glare orspecular reflection patterns on the surface of the eye based on thepattern; and rejecting or accepting the images based on, at least, thebehavior and reflectance metrics.
 22. The storage medium of claim 21wherein determining the behavioral metric comprises determining anonset, duration, velocity, or acceleration of pupil constriction inresponse to photic stimuli.
 23. The storage medium of claim 21 whereindetermining the behavioral metric comprises determining an onset,duration, or acceleration of gaze transition in response to externalstimuli.
 24. The storage medium of claim 21, in which determining thebehavioral metric comprises detecting blood flow of the eye as the eyeappears in a plurality of the images.
 25. The storage medium of claim 21wherein determining the reflectance metric comprises: detecting anappearance of glare on the eye from one or more flash pulses captured byone or more of the images; and measuring a time difference between theoccurrence of the flash pulse and the appearance of a correspondingglare on the eye in the images.
 26. The storage medium of claim 21wherein determining the reflectance metric comprises: detecting finethree dimensional texture of a white of the eye by measuring uniformityof a pattern of glare on the eye from one or more flash pulses capturedby one or more of the images.
 27. The storage medium of claim 21 whereinthe operations further comprise: determining a spatial metric accordingto the pattern based on, at least, a distance from the light sensor to alandmark that appears in a plurality of the images each having adifferent respective focus distance; and wherein rejecting or acceptingthe images further based on the spatial metric.
 28. The storage mediumof claim 27 wherein the spatial metric is a measure of deviation of thesubject from an expected three-dimensional shape.
 29. The storage mediumof claim 27 wherein determining the spatial metric comprises determiningparallax of two or more landmarks that appear in a plurality of theimages.
 30. The storage medium of claim 21 wherein a particularparameter is a flash pulse, a focus setting of the light sensor,brightness of a display, exposure of the light sensor, white balance ofthe light sensor, or external stimuli.